#ifndef __UART1_H
#define __UART1_H

#include <stm32f4xx.h>

typedef __packed struct
{
	int8_t switch_l;
	int8_t switch_r;
	uint8_t mouse_l;
	uint8_t mouse_r;
	int16_t right_x;
	int16_t right_y;
	int16_t left_x;
	int16_t left_y;
	int16_t mouse_x;
	int16_t mouse_y;
	int16_t mouse_z;
	uint16_t  key;
}Tel_Ctrl_t;

extern Tel_Ctrl_t TelCtrlData;
extern u8 sbus_rx_buffer[18];
void TEL_USART1_Init(void);

#endif

